home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1995 November
/
SHOWCASE.ISO
/
files
/
gallery.dir
/
00038_Script_Right Button Script
< prev
next >
Wrap
Text File
|
1995-06-12
|
3KB
|
76 lines
global gPictureSprite, gCurrentSection, gCurrentPicture, gNumOPics, gProductSelect
global gMacIDSprite, gWindowsIdSprite, gDemoButtonSprite, gLaunchQTButton, gFirstGoRound
on mousedown
set the puppet of sprite the clickon to true
-- if NOT gFirstGoRound then
-- unloadcast cast (string(gCurrentSection) & "QT" & string(gCurrentPicture))
-- end if
repeat while the stilldown
if rollover(the clickon) then
set the castnum of sprite (the clickon) = the number of cast "GDemoRight lit"
updateStage
else
set the castnum of sprite (the clickon) = the number of cast "GDemoRight"
updateStage
end if
end repeat
end
on mouseUp
if rollover(the clickon) then
set the castnum of sprite (the clickon) = the number of cast "GDemoRight"
set the puppet of sprite the clickon to false
set gCurrentPicture = gCurrentPicture + 1
if gCurrentPicture > gNumOPics then set gCurrentPicture = 1
set the castNum of sprite gPictureSprite = the number of cast (string(gCurrentSection) & string(gCurrentPicture))
set tempList = getaProp(gGalleryList, gCurrentSection)
if gCurrentPicture > 1 then
set the castNum of sprite gLaunchQTButton = the number of cast "PlayQT"
set gProductSelect = getAt(tempList, (gCurrentPicture - 1))
put getProp(gProductList, gProductSelect) into sectionFlags
if getAt(sectionFlags,1) then
set the castNum of sprite gMacIDSprite = the number of cast "macID lit"
else
set the castNum of sprite gMacIDSprite = the number of cast "macID"
end if
if getAt(sectionFlags,2) then
set the castNum of sprite gWindowsIdSprite = the number of cast "windowsID lit"
else
set the castNum of sprite gWindowsIdSprite = the number of cast "windowsID"
end if
if the machineType <> 256 then
if getAt(sectionFlags,3) then
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo"
else
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo lit"
end if
go to the frame - 1
exit
else
if getAt(sectionFlags,4) then
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo"
else
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo lit"
end if
go to the frame - 1
exit
end if
else
set gProductSelect = #null
set the castNum of sprite gLaunchQTButton = the number of cast "NullPlay"
set the castNum of sprite gMacIDSprite = the number of cast "macID"
set the castNum of sprite gWindowsIdSprite = the number of cast "windowsID"
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo lit"
end if
else
set the castnum of sprite (the clickon) = the number of cast "GDemoRight"
set the puppet of sprite the clickon to false
end if
end